import request from "@/utils/request";

// 查询发票列表
export function listCompany(query) {
  return request({
    url: "/depts",
    method: "get",
    params: query,
  });
}

// 查询发票详细
export function getCompany(id) {
  return request({
    url: "/business/invoice/getInfo/" + id,
    method: "get",
  });
}

// 新增发票
export function addCompany(data) {
  return request({
    url: "/addDept",
    method: "post",
    data: data,
  });
}

// 修改发票
export function updateCompany(data) {
  return request({
    url: "/editDept",
    method: "post",
    data: data,
  });
}

// 删除发票
export function delCompany(id) {
  return request({
    url: "remove/" + id,
    method: "get",
  });
}
